import 'package:dmz/business/home/model/locus_data.dart';
import 'package:json_annotation/json_annotation.dart';

part 'serve_point.g.dart';

@JsonSerializable()
class ServePointData {
  int? total;
  List<ServePoint>? list;
  ServePointData();

  factory ServePointData.fromJson(Map<String, dynamic> json) =>
      _$ServePointDataFromJson(json);
  Map<String, dynamic> toJson() => _$ServePointDataToJson(this);
}

@JsonSerializable()
class ServePoint {
  int? id;
  String? name;
  String? addr;
  String? phone;
  Corrdinate? coordinate;
  double? speed;
  int? distance;
  ServePoint();

  factory ServePoint.fromJson(Map<String, dynamic> json) =>
      _$ServePointFromJson(json);
  Map<String, dynamic> toJson() => _$ServePointToJson(this);
}
